package com.woniuxy.business.service;

import com.github.pagehelper.PageInfo;
import com.woniuxy.commons.entity.Coupon;
import com.woniuxy.commons.entity.QueryEntity;
import com.woniuxy.commons.utils.ResponseResult;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @author 雷珉
 * @date 2022年06月08日 16:27
 */
public interface CouponService {
    ResponseResult<List<Coupon>> findAll();

    ResponseResult<PageInfo<Coupon>> findAllByCondition(QueryEntity<Coupon> queryEntity);

    ResponseResult<Coupon> findOne(int id);

    ResponseResult addOne(Coupon coupon);

    ResponseResult deleteOne(int id);

    ResponseResult deleteBatch(int[] ids);

    ResponseResult updateOne(Coupon coupon);

    ResponseResult active(Coupon coupon);

    ResponseResult getCoupon(int id,int userId);
}